From 515f83206785bd9fb50b77df17b48bbed2827cff Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 17 Feb 2017 16:59:21 -0500 Subject: [PATCH] ci: Hard error on all -fsanitize=undefined warnings I saw in a recent test log a ton of spam ``` libglnx/glnx-dirfd.c:253:3: runtime error: null pointer passed as argument 1, which is declared to never be null ``` which actually turned out to be libglnx getting reverted. But let's be sure now we actually bomb out quickly on UBSAN warnings in general. Closes: #693 Approved by: jlebon --- .redhat-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.redhat-ci.yml b/.redhat-ci.yml index 11e5a9d6..74778f8a 100644 --- a/.redhat-ci.yml +++ b/.redhat-ci.yml @@ -12,7 +12,7 @@ packages: - libasan env: - CFLAGS: '-fsanitize=undefined -fsanitize=address' + CFLAGS: '-fsanitize=undefined -fsanitize-undefined-trap-on-error -fsanitize=address' ASAN_OPTIONS: 'detect_leaks=0' # Right now we're not fully clean, but this gets us use-after-free etc # TODO when we're doing leak checks: G_SLICE: "always-malloc" -- 2.30.2